package com.boot.dog.rest.core;

import com.boot.dog.common.util.ApiResult;
import com.boot.dog.common.util.CommonUtil;
import com.boot.dog.common.util.Result;
import com.boot.dog.entities.pojo.Log;
import com.boot.dog.service.LogService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.HttpClientErrorException;

/**
 * @Author: MaxLv
 * @Date: 2020/1/19
 */
@RestController
@RequestMapping("/core/test")
@Slf4j
@AllArgsConstructor
public class TestRest {

    private final LogService logService;

    @GetMapping("/test1")
    public ApiResult<Void> test1() {
        return logService.aopTest();
    }
}
